test_i_blockio_sources = [
  '../../../../main.cpp',
  'test_i_blockio.cpp',
  '../../../../../drivers/chip/interface/chip/i_blockio.cpp',
]

test_i_chip_sources = [
  '../../../../main.cpp',
  'test_i_chip.cpp',
  '../../../../../drivers/chip/interface/i_chip.cpp',
  '../../../internal/test_utils/mock_bus.cpp',
]

incs = [
  include_directories('.'),
  include_directories('../../..'),
  include_directories('../../../../../drivers'),
  include_directories('../../../../../include'),
  include_directories('../../../../../gen'),
  include_directories('../../../../../drivers/chip'),
  include_directories('../../../../../drivers/chip/interface'),
  include_directories('../../../../../drivers/internal'),
]

test_i_blockio = executable(
  'test_i_blockio',
  test_i_blockio_sources,
  include_directories: incs,
  dependencies: [
    gtest_dep,
    test_utilities_dep,
    test_utils_dep,
    libmcpp_deps,
    dev_deps,
    internal_dep,
  ],
  install: false,
)

test_i_chip = executable(
  'test_i_chip',
  test_i_chip_sources,
  include_directories: incs,
  dependencies: [
    gtest_dep,
    test_utilities_dep,
    test_utils_dep,
    libmcpp_deps,
    dev_deps,
    internal_dep,
  ],
  install: false,
)

test('test_i_blockio', test_i_blockio, timeout: 180, suite: 'chip')
test('test_i_chip', test_i_chip, timeout: 180, suite: 'chip')

